package com.hsmw.api.service;


import com.hsmw.api.mapper.HsmwDriverAnswerMapper;
import com.hsmw.api.mapper.HsmwDriverClassTitleMapper;
import com.hsmw.common.base.BaseService;
import com.hsmw.domain.HsmwDriverAnswer;
import com.hsmw.domain.HsmwDriverClassTitle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(isolation = Isolation.REPEATABLE_READ, propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class HsmwDriverClassTitleService extends BaseService<HsmwDriverClassTitleMapper, HsmwDriverClassTitle> {

    @Autowired
    private HsmwDriverClassTitleMapper hsmwDriverClassTitleMapper;

    public List<HsmwDriverClassTitle> findTitlelistByHomeId(String homeId) {

        return hsmwDriverClassTitleMapper.findTitlelistByHomeId(homeId);
    }
}
